Getting an [null] response from SQL query using json_agg

welcome to shbcf.ru